package com.hongyi.modelcontest.modular.contest.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hongyi.modelcontest.modular.contest.entity.ContestRegistRecord;
import com.hongyi.modelcontest.modular.contest.vo.RecordVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 报名记录表 Mapper 接口
 * </p>
 *
 * @author skyet
 * @since 2019-02-23
 */
public interface ContestRegistRecordMapper extends BaseMapper<ContestRegistRecord> {

    List<RecordVo> selectRecordPage(@Param("page") Page page, @Param("conditions") String conditions,
                                    @Param("agentId") Long agentId, @Param("deptId") String deptId);

    List<RecordVo> selectRecordPage(@Param("conditions") String conditions,
                                    @Param("agentId") Long agentId, @Param("deptId") String deptId);

    List<RecordVo> selectDetail(@Param("openId") String openId, @Param("contestId") String contestId);
}
